package fr.sunnydale.android.geek.util;

/**
 * This {@link Enum} holds the different available speeds of rendering.
 * @author doctor
 */
public enum Speed {
    FULL(0, 1000), HALF(1, 500), QUARTER(2, 250), EIGHTH(3, 125), LIGHTNING(4, 10);

    /**
     * The index of the {@link Speed}
     */
    public final int index;
    /**
     * The actual delay in ms between two frames given a {@link Speed} element.
     */
    public final int speed;

    /**
     * Constructor.
     * @param index
     *            {@link Speed#index}
     * @param speed
     *            {@link Speed#speed}
     */
    private Speed(int index, int speed) {
        this.index = index;
        this.speed = speed;
    }
}